bitkeeper revision 1.999.1.2 (40d8923aguFPdqjwxtcBjkCDze4bkQ)
authormjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Tue, 22 Jun 2004 20:10:34 +0000 (20:10 +0000)
committermjw@wray-m-3.hpl.hp.com <mjw@wray-m-3.hpl.hp.com>
Tue, 22 Jun 2004 20:10:34 +0000 (20:10 +0000)
Fix shutdown info display.

tools/xenmgr/lib/XendDomainInfo.py

index 182b523d1152624b409ca7b56a3e07c3b4864700..b263942c5b68d8c0e39478b0c8d3f9778046932f 100644 (file)
@@ -126,7 +126,7 @@ class XendDomainInfo:
             sxpr.append(['state', state])
             if self.info['shutdown']:
                 reasons = ["poweroff", "reboot", "suspend"]
-                reason = reasons[info['shutdown_reason']]
+                reason = reasons[self.info['shutdown_reason']]
                 sxpr.append(['shutdown_reason', reason])
             sxpr.append(['cpu', self.info['cpu']])
             sxpr.append(['cpu_time', self.info['cpu_time']/1e9])